package com.hardydou.system.service;

import com.hardydou.system.model.SystemRes;
import com.hardydou.system.model.SystemRole;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：ISystemRoleService
 * @date ：Created in 2020-03-10
 * @Copyright ：Hardydou.com
 */
public interface ISystemResService {


    SystemRes findById(Long resId);


    List<SystemRes> findAll(Map params);


    @Transactional
    int addRes(SystemRes res);


    @Transactional
    int update(SystemRes res);


    @Transactional
    int deleteByResId(Long resId);


    List<SystemRes> findByUserId(Long userId);


    List<SystemRes> findByRoleId(Long roleId);

    List<Map> findAllByRoleId(Long roleId);


}
